package Com.amit.corejava;

public class Lab118 {

	public static void main(String[] args) {
		
		StringBuffer s1=new StringBuffer();
		System.out.println(s1.capacity());
		s1.append("Hello");
		System.out.println(s1.capacity());
		
		s1.append("aaaaaaaaaaaaaaaaaaaaaaaa");
		
		System.out.println(s1.capacity());
		s1.ensureCapacity(10);
		
		System.out.println(s1.capacity());
		s1.ensureCapacity(50);
		System.out.println(s1.capacity());

	}

}
